home *** CD-ROM | disk | FTP | other *** search
- #ifndef _PX_FIELD_TYPE_H_
- #define _PX_FIELD_TYPE_H_
-
- #include <pxengine.h>
- #include "khpxeerr.h"
- #include "fldtype.h"
-
- struct KH_PXFLD
- {
- KH_FIELD_TYPE type;
-
- char* str;
- double n;
- long date;
- short sh;
-
- KH_PXFLD(double f) { type = KH_NUMBER; n = f; }
- KH_PXFLD(long f) { type = KH_DATE; date = f; }
- KH_PXFLD(short f) { type = KH_SHORT; sh = f; }
-
- KH_PXFLD(char* buf) { type = KH_STRING, str = buf; }
-
- };
-
- #endif _PX_FIELD_TYPE_H_
-